<?php
	require_once('./application/models/albumModel.php');

	class item_album extends item_abstract
	{
		private $myModel;
		protected function init()
		{
			$this -> information['album_id'] = '';
			$this -> information['album_beschrijving'] = '';
			$this -> information['album_type'] = '';
			$this -> information['fotos'] = '';
			$this -> information['videos'] = '';
			
			$this -> myModel = albumModel::getInstance($this -> Db);	
		}	
		public function getAlbums(user $iUser)
		{
				return $myModel -> getAlbums($iUser,'0');
		}
		public function insert()
		{
			$this -> myModel -> addAlbums($this);
		}
		public function update()
		{
			$this -> myModel -> updAlbum($this);
		}
		public function verwijder()
		{
			$this -> myModel -> delAlbum($this);
		}
		public function fill()
		{
			$this -> myModel -> fillAlbumId($this);
		}
		
		public function loadFotos(){
		
			$this -> myModel -> fill($this);
		
		}
		
		public function loadVideos(){
		
			$this -> myModel -> fill($this);
		
		}
	}
?>